package com.softeem.service.impl;

import com.softeem.domain.User;
import com.softeem.mapper.UserMapper;
import com.softeem.service.IUserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author ${author}
 * @since 2022-07-01
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements IUserService {


    @Autowired
    UserMapper mapper;

    @Override
    public List<User> addUser(User user) {
        List<User> users = mapper.addUser(user);
        return users;
    }
}
